package com.itheima.aliyun;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
// 启用AliyunOssConfig
@EnableConfigurationProperties(AliyunOssConfig.class)
public class AliyunAutoConfiguration {

    @Bean
    public AliyunOSSUtils aliyunOSSUtils(AliyunOssConfig config){
        return new AliyunOSSUtils(config);
    }

}
